#include "paintball.h"

void PaintBall::miseAJour(){
    portee= 4 +(niveau/2.0);
    force=4*(pow(niveau,1.5));
    cercle.setRect((-portee*(600.0/16)+600/32),(-portee*(600.0/16)+600/32),(2*portee*(600.0/16)),(2*portee*(600.0/16)));
    forceinit = 4*(pow(niveau,1.5));
}
int PaintBall::ameliorer(int credit){
    int i = Defense::ameliorer(credit);
    if (i!=0){
        miseAJour();
    }
    return i;
}
